package com.hqyj.pojo;

import org.springframework.stereotype.Component;

/**
 * User: Administrator
 * Date: 2022/8/18
 * Time: 16:53
 */
@Component
public class Nurse {
    private int nid;
    private User user;
    private String nname;
    private String nsex;
    private Department department;

    public Nurse() {
    }

    public Nurse(int nid, User user, String nname, String nsex, Department department) {
        this.nid = nid;
        this.user = user;
        this.nname = nname;
        this.nsex = nsex;
        this.department = department;
    }

    public int getNid() {
        return nid;
    }

    public void setNid(int nid) {
        this.nid = nid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getNname() {
        return nname;
    }

    public void setNname(String nname) {
        this.nname = nname;
    }

    public String getNsex() {
        return nsex;
    }

    public void setNsex(String nsex) {
        this.nsex = nsex;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    @Override
    public String toString() {
        return "Nurse{" +
                "nid=" + nid +
                ", user=" + user +
                ", nname='" + nname + '\'' +
                ", nsex='" + nsex + '\'' +
                ", department=" + department +
                '}';
    }
}
